// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// A generic onclick callback function.
function genericOnClick(info, tab) {
	alert('clicked');
}

// Create one test item for each context type.
var contexts = ["page","selection","link"];
for (var i = 0; i < contexts.length; i++) {
  var context = contexts[i];
  var title = "添加到kulou收藏夹";
  var id = chrome.contextMenus.create({"title": title, "contexts":[context],
                                       "onclick": genericOnClick});
}